﻿<%
    String pathl = request.getContextPath();
    String basePathl = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + pathl + "/";
%>
<!-- 本页面涉及的js函数，都在head.jsp页面中 -->
<div id="sidebar" class="menu-min">
    <div id="sidebar-shortcuts">
    </div>
    <ul class="nav nav-list">
        <c:forEach items="${menuList}" var="model">
            <li id="lm${model.id }">
                <a style="cursor:pointer;" class="dropdown-toggle">
                    <i class="icon-desktop"></i>
                    <span>${model.name }</span>
                    <b class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <c:forEach items="${model.subMenu }" var="sub">
                        <c:choose>
                            <c:when test="${not empty sub.url }">
                                <li id="z${sub.id }">
                                    <a style="cursor:pointer;" target="mainFrame"
                                       onclick="siMenu('z${sub.id }','lm${model.id }', '${sub.id }', '${sub.name }','${sub.url }')">
                                        <i class="icon-double-angle-right"></i>${sub.name }
                                    </a>
                                </li>
                            </c:when>
                            <c:otherwise>
                                <li>
                                    <c:choose>
                                        <c:when test="${not empty sub.subMenu}">
                                            <a style="cursor:pointer;" class="dropdown-toggle">
                                                <i class="icon-desktop"></i>
                                                <span>${sub.name }</span>
                                                <b class="arrow icon-angle-down"></b>
                                            </a>
                                            <ul class="submenu-sub" style="display: none">
                                                <c:forEach items="${sub.subMenu }" var="subb">
                                                    <c:choose>
                                                        <c:when test="${not empty subb.url }">
                                                            <li id="z${subb.id }">
                                                                <a style="cursor:pointer;text-decoration:none;display: block; color: #616161;padding: 7px 0px 8px 50px;border-bottom: 1px dotted #e4e4e4;"
                                                                   target="mainFrame"
                                                                   onclick="siMenu('z${subb.id }','lm${sub.id }', '${subb.id }', '${subb.name }','${subb.url }')">
                                                                    <i class="icon-double-angle-right"></i>${subb.name }
                                                                </a>
                                                            </li>
                                                        </c:when>
                                                        <c:otherwise>
                                                            <a href="javascript:void(0);">
                                                                <i class="icon-double-angle-right"></i>${subb.name }
                                                            </a>
                                                        </c:otherwise>
                                                    </c:choose>
                                                </c:forEach>
                                            </ul>
                                        </c:when>
                                        <c:otherwise>
                                            <a href="javascript:void(0);">
                                                <i class="icon-double-angle-right"></i>${sub.name }
                                            </a>
                                        </c:otherwise>
                                    </c:choose>
                                </li>
                            </c:otherwise>
                        </c:choose>
                    </c:forEach>
                </ul>
            </li>
        </c:forEach>
    </ul>
    <div id="sidebar-collapse"><i class="icon-double-angle-left"></i></div>
</div>

